//
//  NSObject+AYExtension.m
//  CreateTools
//
//  Created by AY on 16/6/27.
//  Copyright © 2016年 Jasperay. All rights reserved.
//

#import "NSObject+AYExtension.h"
//#import "MJExtension.h"

@implementation NSObject (AYExtension)

//- (NSString *)JSONString {
//    
//    NSData *JSONData = nil;
//    if ([self isKindOfClass:[NSDictionary class]]) { // 如果self是NSDictionary
//        
//        JSONData = [NSJSONSerialization dataWithJSONObject:self options:NSJSONWritingPrettyPrinted error:nil];
//    } else if ([self isKindOfClass:[NSObject class]]) {        // 如果self是继承NSObject的非字典对象
//        
//        // 需要配合 MJExtension
//        JSONData = [NSJSONSerialization dataWithJSONObject:self.keyValues options:NSJSONWritingPrettyPrinted error:nil];
//    }
//    
//    return [[NSString alloc] initWithData:JSONData encoding:NSUTF8StringEncoding];
//}


@end
